package com.fei.service;

import com.fei.bean.AttentionBean;
import com.fei.mapper.AttentionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AttentionServiceImpl implements AttentionService{

    @Autowired
    AttentionMapper attentionMapper;

    @Override
    public Boolean selectOnePhoneAndSingerIdService(AttentionBean attentionBean) {
        Integer count = attentionMapper.selectOnePhoneAndSingerId(attentionBean);
        if (count != 0){
            return true;
        }
        return false;
    }

    @Override
    public int insertUserAttentionService(AttentionBean attentionBean) {
        return attentionMapper.insertUserAttention(attentionBean);
    }

    @Override
    public int deleteUserAttentionService(AttentionBean attentionBean) {
        return attentionMapper.deleteUserAttention(attentionBean);
    }


}
